Skip to content

Replace yargs with minimist - #21

Merged
piecioshka merged 2 commits into
mainfrom
copilot/replace-yargs-with-minimist
Jan 12, 2026
Merged

Replace yargs with minimist#21
piecioshka merged 2 commits into
mainfrom
copilot/replace-yargs-with-minimist

Conversation

Copilot AI commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Replaced the yargs dependency with minimist for CLI argument parsing, reducing package footprint by 5 dependencies.

Changes

  • package.json: Swapped yargs@^17.3.1 for minimist@^1.2.8
  • bin/cli.js: Rewrote argument parsing logic using minimist's configuration object with explicit type hints and alias mappings

CLI Interface

All options remain unchanged:

encoding-checker [-p pattern] [-i encoding] [-v]
# All aliases work: -p/-d/--pattern, -i/--ignore-encoding, -v/--verbose

Help and version flags now handled explicitly with early exit instead of relying on yargs' built-in formatters.

Original prompt

This section details on the original issue you should resolve

<issue_title>Replace yargs by minimist</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: piecioshka <244935+piecioshka@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace yargs by minimist in the project Replace yargs with minimist Jan 12, 2026
Copilot AI requested a review from piecioshka January 12, 2026 10:50
@piecioshka
piecioshka marked this pull request as ready for review January 12, 2026 13:35
@piecioshka
piecioshka merged commit 36a061b into main Jan 12, 2026
5 checks passed
@piecioshka
piecioshka deleted the copilot/replace-yargs-with-minimist branch January 12, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace yargs by minimist

2 participants